home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_319 / cnewssrc / cnews.src.lzh / relay / msgs.c < prev    next >
C/C++ Source or Header  |  1989-07-11  |  550b  |  28 lines

  1. /*
  2.  * print common messages
  3.  */
  4.  
  5. #include <stdio.h>
  6. #ifndef AMIGA
  7. #  include <sys/types.h>
  8. #endif /* AMIGA */
  9. #include "news.h"
  10. #include "headers.h"
  11. #include "article.h"
  12. #include "msgs.h"
  13.  
  14. void fulldisk(art, file)        /* complain once & set ST_DISKFULL */
  15. register struct article *art;
  16. char *file;
  17. {
  18.     if (!(art->a_status&ST_DISKFULL))
  19.         art->a_status |= prfulldisk(file);
  20. }
  21.  
  22. statust prfulldisk(file)        /* complain once & return bad status */
  23. char *file;
  24. {
  25.     warning("error writing `%s', probably the disk filled", file);
  26.     return ST_DISKFULL|ST_DROPPED;
  27. }
  28.